<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>化验单</title>
    <include file="Common:header_include"/>
    <!-- Bootstrap -->
    <!--<link href="../../../../../index.php" rel="stylesheet">-->
    <!--<link rel="stylesheet" href="../../../../../index.php"/>-->
    <!--<link rel="stylesheet" href="../../../../../index.php"/>-->
    <!--<link rel="stylesheet" href="../../../../../index.php"/>-->
    <!--[if lt IE 9]>
    <!--<script src="http://cdn.bootcss.com/html5shiv/3.7.2/html5shiv.min.js"></script>-->
    <!--<script src="http://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>-->
    <!--<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>-->
    <![endif]-->

    <script>
        function check(id) {
            var frameSrc = "{:U('Operation/showAddLink')}" + "?id=" + id;
            $("#chakan").attr("src", frameSrc);
            $('#chakanModal').modal({show: true, backdrop: 'static'});
        }
    </script>
    <style>
        #Laboratory .table {
            table-layout: fixed;
        }

        #Laboratory .table tr td:first-child {
            width: 100%;
            word-break: keep-all;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;

        }

        #Laboratory .table thead th, #Laboratory .table tr td {
            width: 25%;
        }

        #yszd {
            width: 800px;
            height: 500px;
            border: 1px solid rgba(0, 0, 0, .2);
            border-radius: 6px;
            box-shadow: 0 3px 9px rgba(0, 0, 0, .5);

        }
        .yichu{
            height: 490px;
            overflow: hidden;
        }
        .navbar-form{
            line-height: 35px;
        }
    </style>
</head>
<body>
<div id="Laboratory" style="width:750px;padding:20px;margin:0 auto;"> <!--背景色、边框、阴影-->
    <table class="table table-bordered text-center table-hover">
        <thead>
        <tr class="success ">
            <th class="text-center"><b>检验项目</b></th>
            <th class="text-center"><b>日期</b></th>
            <th class="text-center"><b>化验结果</b></th>
            <th class="text-center"><b>操作</b></th>
        </tr>
        </thead>
        <tbody>
        <volist name="res" id="data">
        <tr>

                <td title="123"><a href="">{$data.title}</a></td>
                <td>{:date('Y-M-D',$data['last_time'])}</td>
                <td>{$data.result}</td>
                <td><a href="javascript:;" class="btn-xs btn-success" data-toggle="modal" data-target="#myModal">查看</a></td>

        </tr>
        </volist>
        </tbody>
    </table>
    <div class="modal fade yichu" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-body">
                    <form action="{:U('Operation/checkSubmit')}" class="navbar-form" method="post">
                    <div style="width:750px;padding:20px;margin:0 auto;"> <!--背景色、边框、阴影-->
                            <div class="form-group">
                                <b>化验项图片</b>
                                <volist name="list" id="data">
                                <a href="{:U('Operation/edit?id=',array('id'=>$data['id']))}" target="_blank">
                                        <input type="hidden" name="img" value="{$data.cover}">
                                    <img src="../../../../../index.php" alt="" style="width:100px;"/>
                                </a>
                                </volist>
                                <span>点击编辑图片</span>
                            </div>

                            <div>
                                <label for="doc_name">医生指导：</label>

                                <div class="radio" style="margin-left:10px;">
                                    <label>
                                        <input style="margin:-1px 5px 0 0;" type="radio" name="optRadios"
                                               id="optRadios1" value="1" checked>通过
                                    </label>
                                </div>
                                <div class="radio" style="margin-left:10px;">
                                    <label>
                                        <input style="margin:-1px 5px 0 0;" type="radio" name="optRadios"
                                               id="optRadios2" value="0">未通过
                                    </label>
                                </div>
                                <br/>
                                <textarea id="doc_name" name="doc_name" cols="68" rows="6"
                                          style="resize:none;line-height: 30px" placeholder="请输入"></textarea>
                            </div>
                    </div>
                    <div class="modal-footer">
                        <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                        <input type="submit" class="btn btn-primary" value="确定">
                    </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>

    <script src="../../../../../index.php"></script>
    <script src="../../../../../index.php"></script>
</body>
</html>